package com.longchat.controller.admin.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.longchat.domain.Resource;
import com.longchat.service.inter.system.ResourceService;

@Controller
public class ResourceController {

	@Autowired
	private ResourceService resourceService;
	@ResponseBody
	@RequestMapping("/resource/{id}")
	public Resource getResource(@PathVariable(value="id")Integer id){
		System.out.println("__________________--");
		return resourceService.findById(id);
	}
}
